package com.meilai.project.entity.administration.goods;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.core.bean.SuperEntity;

import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 物品库存变化表
 * </p>
 *
 * @author xhy
 * @since 2022-12-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("goods_storage_change_record")
@ApiModel(value = "GoodsStorageChangeRecord对象", description = "物品库存变化表")
public class GoodsStorageChangeRecord extends SuperEntity {

    @ApiModelProperty(value = "1：入库  2：出库")
    private Integer type;

    @ApiModelProperty(value = "改变时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime change_time;

    @ApiModelProperty(value = "操作人")
    private Long operator_id;

    @ApiModelProperty(value = "改变之前的库存数")
    private Long before_change_number;

    @ApiModelProperty(value = "改变之后的库存数")
    private Long after_change_number;

    @ApiModelProperty(value = "改变数量")
    private Long change_number;

    @ApiModelProperty(value = "物品类型id")
    private Long goods_type_id;
    
    @ApiModelProperty("出入库记录id")
    private Long data_id;
}
